package cn.cdeden.knowledge.service.dto;

import cn.cdeden.common.translation.annotation.Translation;
import cn.cdeden.common.translation.constant.TransConstant;
import cn.cdeden.knowledge.domain.SysPortalConfigure;
import cn.cdeden.knowledge.domain.SysPortalImages;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.util.Date;

/**
* @author gjx
* @date 2024-09-26
*/
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@AutoMappers({@AutoMapper(target = SysPortalImages.class)})
public class SysPortalImagesDto implements Serializable {
    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "文件")
    private MultipartFile file;

//    @ApiModelProperty(value = "主键ID")
    private Long id;

//    @ApiModelProperty(value = "名称")
    private String name;

//    @ApiModelProperty(value = "图片地址")
    @Translation(type = TransConstant.OSS_ID_TO_URL,mapper = "storageId")
    private String url;

//    @ApiModelProperty(value = "创建时间")
    private Date createTime;

//    @ApiModelProperty(value = "文件存储ID")
    private Long storageId;

    private String storageIdConvert;

    private String module;

    private String libraryId;

    private Long size;

    private String suffix;
}
